﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DtoFw.Query
{
    public class WebScoketReqDto
    {
        /// <summary>
        /// 当前未读消息数
        /// </summary>
       public int NotificationNum { get; set; }
        /// <summary>
        /// 最后一条预警消息
        /// </summary>
        public string LastWarnMessage { get; set; }
        public List<WebScoketContent> webScoketContents { get; set; } = new List<WebScoketContent>();
    }

    public class WebScoketContent 
    {
        /// <summary>
        /// 消息主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        public int Mold { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        public string MolldTitle { get; set; }
        /// <summary>
        /// 消息时间
        /// </summary>
        public DateTime NoticeTime { get; set; }
        /// <summary>
        /// 消息描述
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 消息级别 1 红 2 黄 3 绿
        /// </summary>
        public int Level { get; set; }
    }
}
